package com.whfc.base.service;

import com.whfc.base.dto.AppSyncDTO;
import com.whfc.base.enums.AppSyncModule;
import com.whfc.common.enums.SyncPlatform;
import com.whfc.common.exception.BizException;

import java.util.List;

/**
 * @Description: 平台同步配置服务接口
 * @author: xugcheng
 * @version: 1.0
 * @date: 2020-11-27 11:25
 */
public interface SyncConfigService {

    /**
     * 获取平台同步配置
     *
     * @param syncPlatform
     * @param deptId
     * @return
     * @throws BizException
     */
    AppSyncDTO getSyncConfig(SyncPlatform syncPlatform, Integer deptId) throws BizException;

    /**
     * 获取平台同步配置
     *
     * @param syncPlatform
     * @param deptId
     * @param syncModule
     * @return
     * @throws BizException
     */
    AppSyncDTO getSyncConfig(SyncPlatform syncPlatform, Integer deptId, AppSyncModule syncModule) throws BizException;

    List<AppSyncDTO> selectByPlatform(Integer platform)throws BizException;

    String getSZJSyncToken(Integer deptId,Integer platform,String secret);

    String getShiShouSyncToken(String appKey,String appSecret,String host);
}
